import com.mach.platform.sprider.dev.ByteUtil;
import com.mach.platform.sprider.dev.DataHelper;

import java.io.IOException;

/**
 * @author xieyingheng
 * @title: Test
 * @projectName MachineBigData
 * @description: TODO
 * @date 2020-01-1316:39
 */
public class Test {

    public static void main(String[] args) throws IOException {
        DataHelper dh = new DataHelper("192.168.3.90", 8002, 7);

//        for (int i = 0; i < 1000; ++i) {
            byte[] result = dh.getDataTcp(
                    30001, 1,3);
            System.out.println(ByteUtil.getFloat(result, 3, 4, false));
//        }


//        byte[] dataBuf = new byte[20];
//
//        byte[] nowBuf = ByteUtil.getBytes(System.currentTimeMillis());
//        byte[] devIdBuf = ByteUtil.getBytes(101);
//        byte[] collIdBuf = ByteUtil.getBytes(10);
    }
}
